package com.bestcem.xm.label.grpc.service.param.label;

import com.bestcem.xm.common.core.constant.RegTypes;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * 标签删除参数校验
 *
 * @author yf.wang <yf.wang@idiaoyan.com>
 * @version V1.0
 * @date 2021/5/21
 */

@Getter
@Setter
public class DeleteLabelParam {

    @NotBlank(message = "机构id不能为空")
    @Pattern(regexp = RegTypes.OBJECT_ID, message = "机构id格式错误")
    private String orgId;

    @NotBlank(message = "标签id不能为空")
    @Pattern(regexp = RegTypes.OBJECT_ID, message = "标签id格式错误")
    private String id;
}
